package com.yh.ldzl.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 生产模块Feign客户端
 * 用于质检模块调用生产模块的接口
 * 
 * @author ldzl
 * @date 2025-01-23
 */
@FeignClient(value = "ldzl-sc", contextId = "productionModuleClient")
public interface ProductionModuleClient {

    /**
     * 质检完成回调
     * 
     * @param callbackData 回调数据
     * @return 处理结果
     */
    @PostMapping("/sc/quality-check/callback")
    AjaxResult qualityCheckCallback(@RequestBody Map<String, Object> callbackData);

    /**
     * 质检进度回调
     * 
     * @param progressData 进度数据
     * @return 处理结果
     */
    @PostMapping("/sc/quality-check/progress")
    AjaxResult qualityCheckProgress(@RequestBody Map<String, Object> progressData);
}
